[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 GETY() (INTEGER)

 Function
  Report the Y coordinate (row) of the cursor on screen.

 Syntax
  GETY()   No arguments are required

 Return Type & Value
  INTEGER
  Returns the row (1-23) of the cursor on screen.

 Remarks
  This function is used to query the ANSI emulator in PCBoard the current
  Y position of the cursor.  It may be used for saving the cursor position
  for future use or for saving the verticle cursor position while
  changing the horizontal position with the ANSIPOS statement.

 Examples
  INTEGER x,y
  STRING s

  WHILE (UPPER(s) <> "QUIT") DO

    INPUT "Text",s
    PRINTLN " - ",s

    LET x = GETX()
    LET y = GETY()
    IF (y = 23) THEN
      CLS
      LET x = GETX()
      LET y = GETY()
    ENDIF

    ANSIPOS 40,23
    PRINT "@X8Fs=",s
    ANSIPOS x,y

  ENDWHILE

See Also: ANSIPOS ANSION() BACKUP FORWARD GETX() GRAFMODE()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson